package com.teach;

import java.util.Arrays;

/**
 * <pre>
 * -
 * Author : J.L.Zhou
 * E-Mail : 2233875735@qq.com
 * Tel : 151 1104 7708
 * Date : 2021-04-13 9:37
 * Version : 1.0
 * Copyright 2021 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 **/
public class Demo01 {

  public static void main(String[] args) {
    String str = "a|b;c|d|e||f";
    String[] strs = str.split("\\|");
    System.out.println(Arrays.toString(strs));
    str = "|a|b;c|d|e||f|";
    strs = str.split("\\|");
    System.out.println(Arrays.toString(strs));
    strs = str.split("\\|",3);
    System.out.println(Arrays.toString(strs));
    strs = str.split("[\\|;]+");
    System.out.println(Arrays.toString(strs));

    str = "abcABCabc0123一二三壹贰叁";
    System.out.println(str.toUpperCase());
    System.out.println(str.toLowerCase());

//    System.out.println(String.valueOf(1));


  }
}
